package com.mvc.base.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.mvc.framework.model.CommonAuditableEntity;

/**
 * 公告
 */
@Entity(name = "B_NOTICE")
public class Notice extends CommonAuditableEntity {

	@NotNull
	private String title;

	@NotNull
	@Length(max = 1024)
	private String content;

	@NotNull
	private Date effectiveDate;

	@NotNull
	private Date expireDate;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getEffectiveDate() {
		return effectiveDate;
	}

	public void setEffectiveDate(Date effectiveDate) {
		this.effectiveDate = effectiveDate;
	}

	public Date getExpireDate() {
		return expireDate;
	}

	public void setExpireDate(Date expireDate) {
		this.expireDate = expireDate;
	}

}
